From: Jasper St. Pierre Date: Sat, 1 Sep 2012 19:45:44 +0000 (-0300) Subject: st-bin: Don't allocate a hidden actor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5976 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=50f8ae6fc756d1a0fb33912e6b9d08a8fa71c197;p=gnome-shell.git st-bin: Don't allocate a hidden actor https://bugzilla.gnome.org/show_bug.cgi?id=683156 --- diff --git a/src/st/st-bin.c b/src/st/st-bin.c index 71c7c3a5c..b08334639 100644 --- a/src/st/st-bin.c +++ b/src/st/st-bin.c @@ -128,7 +128,7 @@ st_bin_get_preferred_width (ClutterActor *self, st_theme_node_adjust_for_height (theme_node, &for_height); - if (priv->child == NULL) + if (priv->child == NULL || !CLUTTER_ACTOR_IS_VISIBLE (priv->child)) { if (min_width_p) *min_width_p = 0; @@ -157,7 +157,7 @@ st_bin_get_preferred_height (ClutterActor *self, st_theme_node_adjust_for_width (theme_node, &for_width); - if (priv->child == NULL) + if (priv->child == NULL || !CLUTTER_ACTOR_IS_VISIBLE (priv->child)) { if (min_height_p) *min_height_p = 0;